<html>
<head><meta charset="utf-8"><title>vscode_extension_config · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html">vscode_extension_config</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="187966383"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/187966383" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#187966383">(Feb 11 2020 at 23:17)</a>:</h4>
<p>I am working on reworking our config in vscode extension. It seems we do have conflicting defaults (as we have <a href="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Deployment.20and.20installation/near/187686421" title="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Deployment.20and.20installation/near/187686421">up to 3 sources of truth there</a>).<br>
<code>highlightingOn</code> default <a href="https://github.com/rust-analyzer/rust-analyzer/pull/899" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/899">was set to <code>false</code></a> in <code>package.json</code>, but we missed to change this in <a href="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/src/config.ts#L23" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/src/config.ts#L23"><code>class Config</code></a>.<br>
I guess now the effective default is <code>false</code>, but do we leave it <code>false</code> anyway, <span class="user-mention" data-user-id="133169">@matklad</span> ?</p>



<a name="187967156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/187967156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#187967156">(Feb 11 2020 at 23:29)</a>:</h4>
<p>One more inconsistency is in <code>"cargo-watch.command"</code>.<br>
In package.json it is <a href="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/package.json#L205" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/package.json#L205"><code>"check"</code></a>, in code it is <a href="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/src/config.ts#L37" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/759100fb0dcb41518f2a593dae5de5bbedd07776/editors/code/src/config.ts#L37">an empty string</a>, can you please elaborate <span class="user-mention" data-user-id="212936">@Emil Lauridsen</span> ?</p>



<a name="187986776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/187986776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Emil Lauridsen <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#187986776">(Feb 12 2020 at 07:14)</a>:</h4>
<p>I just adapted what was there from the original VSCode only implementation, so I'm not sure what the original idea was.</p>



<a name="188052535"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188052535" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188052535">(Feb 12 2020 at 20:59)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> , can you also please clarify on <code>withSysroot</code> setting? Is it an implementation detail that is not exposed to users (though they can specify it, but they are not supposed to)?</p>



<a name="188052779"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188052779" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188052779">(Feb 12 2020 at 21:03)</a>:</h4>
<p>Yep, it exists solely for devs of rust-analyzer itself</p>



<a name="188060754"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188060754" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188060754">(Feb 12 2020 at 22:43)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span>  I see <a href="https://github.com/rust-analyzer/rust-analyzer/blob/5e464d058b5043c663b0fe14bd9291c7b7b44d43/editors/code/package.json#L212-L227" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/5e464d058b5043c663b0fe14bd9291c7b7b44d43/editors/code/package.json#L212-L227"><code>"trace.server"</code> setting</a> is not used, should we remove it from <code>package.json</code>?</p>



<a name="188061468"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188061468" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188061468">(Feb 12 2020 at 22:54)</a>:</h4>
<p>It definitely <em>works</em> in that you need to set it to see the log of<br>
requests. I think it’s a client-side only setting?</p>



<a name="188062348"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188062348" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188062348">(Feb 12 2020 at 23:07)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> , I don't see it to be referenced in our client code. See <a href="https://github.com/rust-analyzer/rust-analyzer/pull/302" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/302">this PR</a> where it was introduced, I don't see where it was referenced even then...</p>



<a name="188064030"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188064030" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188064030">(Feb 12 2020 at 23:32)</a>:</h4>
<p>Hm, interesting, I definitelly enabled and disable traces regurarly, and I think it goes via that setting and works? Am I imagning things? Or is this somehow just picked up by VS Code automatically?</p>



<a name="188090093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188090093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188090093">(Feb 13 2020 at 09:23)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span>, which way do you enable and disable traces? I doubt that this is some "magic" configuration. I haven't found any references in <code>vscode-languageclient</code> (I haven't even found any docs on this module on their GitHub)</p>



<a name="188090869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188090869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188090869">(Feb 13 2020 at 09:34)</a>:</h4>
<p>I need config on the left to see stuff on the right</p>



<a name="188090870"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188090870" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188090870">(Feb 13 2020 at 09:34)</a>:</h4>
<p><a href="/user_uploads/4715/oAz_8gFoWb3W605zlSGhJHva/pasted_image.png" target="_blank" title="pasted_image.png">pasted image</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/oAz_8gFoWb3W605zlSGhJHva/pasted_image.png" target="_blank" title="pasted image"><img src="/user_uploads/4715/oAz_8gFoWb3W605zlSGhJHva/pasted_image.png"></a></div>



<a name="188090913"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188090913" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188090913">(Feb 13 2020 at 09:35)</a>:</h4>
<p><a href="https://code.visualstudio.com/api/language-extensions/language-server-extension-guide#logging-support-for-language-server" target="_blank" title="https://code.visualstudio.com/api/language-extensions/language-server-extension-guide#logging-support-for-language-server">https://code.visualstudio.com/api/language-extensions/language-server-extension-guide#logging-support-for-language-server</a></p>



<a name="188090916"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188090916" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188090916">(Feb 13 2020 at 09:36)</a>:</h4>
<p>it is a magic thing</p>



<a name="188091066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config/near/188091066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode_extension_config.html#188091066">(Feb 13 2020 at 09:38)</a>:</h4>
<p>Aha, yes, I somehow did miss this, when doing a search through thier <code>vscode-language*</code> repo...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>